﻿using Microsoft.Extensions.DependencyInjection;

namespace ESoft.Elasticsearch
{
    public static class ServiceCollectionExtensions
    {
        public static void AddElasticsearch(this IServiceCollection services)
        {
            services.AddSingleton<IEsService, EsService>();
        }
    }
}
